package com.jiaoxue.tasknotes.db;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;

import com.jiaoxue.tasknotes.Bean.TaskBean;

import java.util.List;

/**
 * Created by Administrator on 2017/11/16 0016.
 */
@Dao
public interface TaskDao {
    @Query("Select * from tasks")
    List<TaskBean> getTasks();
    @Insert
    void intserAll(TaskBean... tasks);
    @Delete
    void delect(TaskBean task);

}
